package com.laf.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.sql.Date;

public class Userinfo {

  private String userId;
  private String userName;
  private String password;
  private String email;
  private String phone;
  private String queId;
  private String answer;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private java.sql.Date regTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private java.sql.Date logTime;
  private String display;
  private Question question;

  public Userinfo() {
  }

  public Userinfo(String userId, String userName, String password, String email, String phone, String queId, String answer, Date regTime, Date logTime, String display, Question question) {
    this.userId = userId;
    this.userName = userName;
    this.password = password;
    this.email = email;
    this.phone = phone;
    this.queId = queId;
    this.answer = answer;
    this.regTime = regTime;
    this.logTime = logTime;
    this.display = display;
    this.question = question;
  }

  @Override
  public String toString() {
    return "Userinfo{" +
            "userId='" + userId + '\'' +
            ", userName='" + userName + '\'' +
            ", password='" + password + '\'' +
            ", email='" + email + '\'' +
            ", phone='" + phone + '\'' +
            ", queId='" + queId + '\'' +
            ", answer='" + answer + '\'' +
            ", regTime=" + regTime +
            ", logTime=" + logTime +
            ", display='" + display + '\'' +
            ", question=" + question +
            '}';
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }





  public String getAnswer() {
    return answer;
  }

  public void setAnswer(String answer) {
    this.answer = answer;
  }


  public java.sql.Date getRegTime() {
    return regTime;
  }

  public void setRegTime(java.sql.Date regTime) {
    this.regTime = regTime;
  }


  public java.sql.Date getLogTime() {
    return logTime;
  }

  public void setLogTime(java.sql.Date logTime) {
    this.logTime = logTime;
  }

  public String getQueId() {
    return queId;
  }

  public void setQueId(String queId) {
    this.queId = queId;
  }

  public Question getQuestion() {
    return question;
  }

  public void setQuestion(Question question) {
    this.question = question;
  }

  public String getDisplay() {
    return display;
  }

  public void setDisplay(String display) {
    this.display = display;
  }

}
